Next | Prev | Top | Contents | Index

Chapter 8: Structure of a Kernel-Level Driver


A kernel-level device driver supplies services to the kernel through a set of entry points in the driver. When events occur, the kernel calls these entry points. The driver takes action and returns a result code.

This chapter discusses when the driver entry points are called, what parameters they receive, and what actions they are expected to take. For a conceptual overview of the kernel and drivers, see "Kernel-Level Device Control". For details on how a driver is compiled, linked, and added to IRIX, see Chapter 10, "Building and Installing a Driver."

Note: This chapter discusses device drivers. The entry point conventions for STREAMS drivers are covered in Chapter 19, "STREAMS Drivers." The primary topics covered in this chapter are:


Summary of Driver Structure
Driver Flag Constant
Initialization Entry Points
Open and Close Entry Points
Control Entry Point
Data Transfer Entry Points
Poll Entry Point
Memory Map Entry Points
Interrupt Entry Point
Support Entry Points
Handling 32-Bit and 64-Bit Execution Models
Planning for Multiprocessor Use

Next | Prev | Top | Contents | Index